//
//  BYTimer.h
//  BYTimerDemo
//
//  Created by 崔宝印 on 2018/8/7.
//  Copyright © 2018年 Koolearn. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^BYTimerTaskBlock)(void);

@interface BYTimer : NSObject

+ (NSString *)doTask:(BYTimerTaskBlock)block
          afterDelay:(NSTimeInterval)delay
        timeInterval:(NSTimeInterval)interval
             repeats:(BOOL)repeats
               async:(BOOL)async;

+ (void)cancelTimer:(NSString *)timerTag;

@end
